package com.dsy.xiangcun_manage.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dsy.tools.common.utils.QueryObj;
import com.dsy.tools.entity.TbCulture;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dsy
 * @since 2023-03-09
 */
@Component
public interface TbCultureMapper extends BaseMapper<TbCulture> {

    IPage<TbCulture> getAllCulture(Page<TbCulture> page, @Param("we") QueryWrapper<QueryObj> wrapper);

    TbCulture getCultureById(Integer cultureId);
}
